#ifndef DIALOGPLONK_H
#define DIALOGPLONK_H
#include <QMessageBox>
#include <QDialog>
#include <QString>
#include <QStringList>
#include <QStringListModel>
#include <QItemSelectionModel>
namespace Ui {
class DialogPlonk;
}

class DialogPlonk : public QDialog
{
    Q_OBJECT
    
public:
    explicit DialogPlonk(QWidget *parent = 0);
    ~DialogPlonk();
public slots:
    void get_list_plonk_list(QStringList plonk);
    
private:
    Ui::DialogPlonk *ui;
    QStringList liste_users_chiants;
    QStringListModel *model_user_liste_chiants;
    QModelIndex *elementselect;
    QItemSelectionModel *select;
    //QStringList *modele;
    void set_plonklist(void);

    //void click_remove(void);
    void remove_user_selected(void);
private slots:
    void ok_button(void);
    void click_add(void);
    void click_remove(void);

signals:
    void send_plonklist(QStringList);
};

#endif // DIALOGPLONK_H
